
ProjectCheckForm = Ext.extend(Ext.Window,
{
    constructor : function(a) {
        Ext.applyIf(this, a);
        this.initUIComponents();
        ProjectCheckForm .superclass.constructor.call(this, {
            layout : "fit",
            id : this.inputFormName,
            items : yearGridFormPanel,
            modal : true,
            bodyStyle : "padding:2px;",
            buttonAlign : "center",
            buttons : yearGridFormButtons,
            title : "项目检查信息",
            iconCls : "menu-flowWait",
            width : 620,
            height : 450
        });
    },
    //初始化数据
    initUIComponents : function() {
        createyeargridform({
            operation:this,
            form:{
                saveUrl: __ctxPath+"/constructionproject/saveProjectCheck.do",
                items:[
                {
                    id : "projectCheck.id",
                    name : "projectCheck.id",
                    xtype : "hidden",
                    value : this.id == null ? "": this.id
                },{
                    name : "projectCheck.years",
                    xtype : "hidden",
                    id : "projectCheck.years",
                    value : this.years == null ? "" : this.years
                },{
				layout : "column",
				//      border:false,
				bodyStyle : "padding:5px;",
				items : [
						{
							layout : "form",
							columnWidth : .5,
							border : false,
							//                        True表示为显示出面板body元素的边框，false则隐藏
							defaultType : "textfield",
							items : [ {
								fieldLabel : '项目名称'
										+ '<font color=red>*</font>',
								id : "projectCheck.projectName",
								name : "projectCheck.projectName",
								maxLength : 80,
								width : 146,
								allowBlank : false,
								blankText : "项目名称不能为空！"
							} ]
						},
						{
							layout : "form",
							columnWidth : .5,
							border : false,
							//                        True表示为显示出面板body元素的边框，false则隐藏
							defaultType : "textfield",
							items : [ {
								fieldLabel : '施工方',
								xtype : 'textfield',
								name : "projectCheck.constructionUnit",
								width : 146,
								
							} ]
						},
						
						{
						layout : "form",
						border : false,
						columnWidth : .5,
						items : [ {
							xtype : "textfield",
							fieldLabel : '安全责任人',
							name : 'projectCheck.safeDutyPerson',
							/*maxLength:300,
							height:25,*/
							width : 146
						} ]
						},
						{
							layout : "form",
							border : false,
							columnWidth : .5,
							items : [ {
								xtype : "textfield",
								fieldLabel : '检查机构',
								name : 'projectCheck.checkOrganization',
								/*maxLength:300,
								height:25,*/
								width : 146
							} ]
							},
							{
								layout : "form",
								border : false,
								columnWidth : .5,
								items : [ {
									xtype : "textfield",
									fieldLabel : '检查负责人',
									name : 'projectCheck.checkDutyPerson',
									/*maxLength:300,
									height:25,*/
									width : 146
								} ]
								},{
									layout : "form",
									border : false,
									columnWidth : .5,
									items : [ {
										xtype : "textfield",
										fieldLabel : '参检人员',
										name : 'projectCheck.attendCheckPersons',
										/*maxLength:300,
										height:25,*/
										width : 146
									} ]
									},{
										layout : "form",
										border : false,
										columnWidth : 1.,
										items : [ {
											xtype : "textarea",
											fieldLabel : '检查内容',
											name : 'projectCheck.checkContent',
											/*maxLength:300,
											height:25,*/
											width : 448
										} ]
										},{
											layout : "form",
											border : false,
											columnWidth : 1.,
											items : [ {
												xtype : "textarea",
												fieldLabel : '检查结论',
												name : 'projectCheck.checkConclusion',
												/*maxLength:300,
												height:25,*/
												width : 448
											} ]
											}
						
						]
                }
				]
            },
            loadData:{
                getUrl:__ctxPath +"/constructionproject/getProjectCheck.do",
                preName : "projectCheck"
            },
            isShow : this.isShow
        });
    }
});
